package day8;

import java.util.Scanner;

/**
 * 最小公倍数
 */

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int m = Math.max(a,b);
        int n = Math.min(a,b);
        int num = 0;

        while ((num = m % n) > 0){
            m = n;
            n = num;
        }
        System.out.println((a * b) / n);

    }
}